import type { PagingParams } from './type'
import { PAGING } from '@/constant'

export const defaultFormData: any = {
  name: '',
}

export const formRules = {
  name: [
    {
      required: true,
      message: '名称不能为空！',
      trigger: 'change',
    },
  ],
}

export const defaultPagingParams: PagingParams = {
  ...PAGING.PARAMS,
  name: '',
}

export const tabOptions = [
  {
    label: '能源品种',
    key: 'energy',
    disabled: false,
    render: componentLoadAsync(
      () => import('./components/EnergyView.vue'),
    ),
  },
  {
    label: '产品种类',
    key: 'product',
    disabled: true,
    render: componentLoadAsync(
      () => import('./components/EnergyView.vue'),
    ),
  },
  {
    label: '能耗指标',
    key: 'index',
    disabled: true,
    render: componentLoadAsync(
      () => import('./components/EnergyView.vue'),
    ),
  },
]
